package com.example.survey23.service.impl;

import com.example.survey23.entity.GroupLog;
import com.example.survey23.mapper.GroupLogMapper;
import com.example.survey23.service.GroupLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 23Group
 * @since 2022-11-05
 */
@Service
public class GroupLogServiceImpl extends ServiceImpl<GroupLogMapper, GroupLog> implements GroupLogService {
    @Autowired
    GroupLogMapper groupLogMapper;

    @Override
    public Long getMaxGroupLogId() {
        return groupLogMapper.getMaxGroupLogId();
    }

    @Override
    public List<GroupLog> getGroupLogByGroupId(long id) {
        return groupLogMapper.getGroupLogByGroupId(id);
    }

    @Override
    public Long getDeleteId(long groupId, long memberId) {
        return groupLogMapper.getDeleteId(groupId, memberId);
    }
}
